<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            box-sizing: border-box;
            overflow: hidden;
        }
    </style>
</head>

<body>
    <canvas id="canvas"></canvas>
    <script>
        /*  */
        let canvas = document.getElementById('canvas')
        canvas.width=innerWidth
        canvas.height=innerHeight
        const context = canvas.getContext('2d')

        context.rect(0, 0, 100, 100);
        context.fill();
    </script>
</body>

</html>